package cn.edu.csust.coursecard.dao.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Comment {
    //评论id
    private Integer id;

    //评论者id
    private Integer userId;

    //评论的帖子id
    private Integer postId;

    //评论的内容
    private String content;

    //帖子发布者是否已读
    private Boolean isRead;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    //逻辑删除
    private Boolean isValid;
}